package com.panopset.game.blackjack;

/**
 * In Blackjack, there are a well defined set of situations.  An instance of
 * this class represents a single situation.  Each situation can be mapped to
 * an action, based on a strategy.
 * @author Karl Dinwiddie
 *
 */
public class Situation {

    final BlackjackConfig c;
    final BlackjackCard d;
    final Hand h;

    public Situation(
            final BlackjackConfig config,
            final BlackjackCard dealerUpCard,
            final Hand hand) {
        c = config;
        d = dealerUpCard;
        h = hand;
    }

    public Hand getHand() {
        return h;
    }

    public BlackjackCard getDealerUpCard() {
        return d;
    }

    public BlackjackConfig getConfig() {
        return c;
    }
}
